{extend name="common/userbase"} 
{block name="header_js"}
<script src="__STATICS__/js/footer.js" type="text/javascript"></script>
{/block}
{block name="slide"} 
<title>用户中心</title>
{/block}
{block name="content"}
<!--内页样式-->
<div class="user_style clearfix" id="user">
		<div class="user_title"><em></em>用户中心</div>
		<!--用户中心布局样式-->
		 <!--栏目名称-->
		 <div class="user_left">
			<div class="user_info">
				<div class="Head_portrait"><img src="__STATICS__/images/people.png"  width="80px" height="80px"/><!--头像区域--></div>
				<div class="user_name">{:session('nickname')}<a href="#">[个人资料]</a></div>
			</div>
			<ul class="Section">
				<li><a href="{:url('user/center')}"><em></em><span>我的特色馆</span></a></li>
				<li><a href="{:url('user/info')}"><em></em><span>完善个人信息</span></a></li>
				<li><a href="{:url('user/password')}"><em></em><span>修改密码</span></a></li>
				<li><a href="{:url('user/orders')}"><em></em><span>我的订单</span></a></li>
				<li><a href="{:url('user/message')}"><em></em><span>我的评论</span></a></li>
				<li><a href="{:url('user/integral')}"><em></em><span>我的积分</span></a></li>
				<li><a href="{:url('user/collect')}"><em></em><span>我的收藏</span></a></li>
				<li><a href="{:url('user/address')}"><em></em><span>收货地址管理</span></a></li>
			</ul>
		</div>
	   <!--右侧内容展示-->
		<div class="right_style r_user_style">
		
		<!--订单-->
		 <div class="user_info_p_s clearfix">
		  <div class="left_user_cont">
		   <div class="us_Orders left clearfix">
		<div class="Orders_name" style="width: 100%;">
		 <div class="title_name">
		 <div class="Records">评论记录</div>
		 <div class="right select">
		 只记录你最近30天的评论记录   </div>
		 </div>   
		</div>
		<table style="width: 940px;">
		<thead>
		<tr>
		 <th>产品名称</th>
		 <th>评论内容</th>
		 <th>评论时间</th>
		 <th>操作</th>
		 </tr>
		</thead>
		<tbody>
		{foreach name="message" id="val"}
		 <tr>
		  <td class="img">
	  		<a href="#"><span class="left"><img src="__UPLOADS__/{$val.src}"></span>
		  	<span class="left" name="shopname">{$val.shopname}</span></a>
		  </td>
		  <td style="color: #f00;">{$val.message}</td>
		  <td>{$val.time}</td>
		  <td><a href="">查看</a>/<a href="{:url('delmess')}?id={$val.mess_id}">删除</a></td>
		 </tr>
		{/foreach}
		 </tbody>
		</table>
		 <div class="us_jls" style="width: 900px;">共{$mess_count}条记录</div>
		</div>
		  </div> 
		 </div>
		 <!--结束-->
	   </div>
	  </div>
	  <script>
		  $('span[name="shopname"]').each(function(i){
			  var name =  $('span[name="shopname"]').eq(i).text();
			  name = name.substring(0,20);
			  $('span[name="shopname"]').eq(i).html(name+'...')
		  })
	  </script>
{/block}
